using Castle.MonoRail.Framework;
using WineCellar.Data;

namespace WineCellar.Web.Components
{
    public class CellarWineRowComponent :ViewComponent
    {
        private CellarWine cellarwine;

        public override void Initialize()
        {
            cellarwine = (CellarWine)ComponentParams["cellarwine"];
            base.Initialize();
        }
        public override void Render()
        {
            PropertyBag["cellarwine"] = cellarwine;
            base.Render();
        }
    }
}
